package cn.fj.big.spring.http.invoker.demo.web;

import cn.fj.big.spring.http.invoker.demo.api.ITestService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.nio.charset.StandardCharsets;

/**
 * Created by LiJianXin on 2019/2/27 0027.
 */
@Controller
public class TestController {

	@Autowired
	private ITestService testService;

	@ResponseBody
	@RequestMapping("test")
	public String test() {
		return testService.test("不知道在做啥！！".getBytes(StandardCharsets.UTF_8));
	}
}
